package com.RMP
{
    import flash.display.*;
    import flash.events.*;
    import flash.text.*;

    public class MenuBtn extends Sprite
    {
        var fadeSpeed:Number;
        public var btnOver:Sprite;
        public var idNum:Number;
        public var btn:Sprite;
        var myRoot:MovieClip;
        public var field:TextField;

        public function MenuBtn(param1:MovieClip, param2:Number, param3:String)
        {
            var _loc_4:* = undefined;
            myRoot = param1;
            fadeSpeed = param2;
            _loc_4 = new TextFormat();
            _loc_4.font = new HelveticaBoldEmbed().fontName;
            _loc_4.size = 14;
            _loc_4.letterSpacing = 0;
            _loc_4.leftMargin = 0;
            _loc_4.rightMargin = 0;
            _loc_4.color = "0xBEBEBE";
            btnOver = new Sprite();
            btnOver.useHandCursor = true;
            btnOver.mouseEnabled = true;
            btnOver.buttonMode = true;
            btnOver.graphics.beginFill(10066329, 0);
            btnOver.graphics.drawRect(0, 0, 1, 1);
            btnOver.graphics.endFill();
            addChild(btnOver);
            btn = new Sprite();
            btn.useHandCursor = true;
            btn.mouseEnabled = true;
            btn.buttonMode = true;
            btn.mouseChildren = false;
            field = new TextField();
            field.name = "field";
            field.autoSize = "left";
            field.antiAliasType = AntiAliasType.ADVANCED;
            field.gridFitType = GridFitType.PIXEL;
            field.selectable = false;
            field.embedFonts = true;
            field.defaultTextFormat = _loc_4;
            field.text = param3;
            btn.addChild(field);
            addChild(btn);
            myRoot.stage.addEventListener(Event.RESIZE, onResizer);
            doResize();
            return;
        }

        function doResize() : void
        {
            return;
        }

        function onResizer(event:Event)
        {
            doResize();
            return;
        }

        public function updateField(param1:String) : void
        {
            field.text = param1;
            return;
        }

    }
}
